﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace RPGMapa.Data
{
    public class Tile
    {
        private Vector2 posInTileset;

        public Vector2 PosInTileset
        {
            get { return posInTileset; }
            set { posInTileset = value; }
        }
        private Bitmap tileBitmap;

        public Bitmap TileBitmap
        {
            get { return tileBitmap; }
            set { tileBitmap = value; }
        }
        private bool passable;

        public bool Passable
        {
            get { return passable; }
            set { passable = value; }
        }


        public Tile()
        {
            posInTileset = new Vector2(0, 0);
            tileBitmap = new Bitmap(20, 20);
            passable = true;
        }
        public Tile(Bitmap tile, Vector2 pos)
        {
            posInTileset = pos;
            tileBitmap = tile;
            passable = true;
        }

        public override string ToString()
        {
            return
                (" PositionInTileset: " + posInTileset.ToString());
        }
    }
}
